changing double to float