Chaged double to float