changed double to float