z=cost,