updated the present value method