updating double to float