change some double to float