changing the computation to double