added the cost (J) for xv set