changed float -> double