update to float
double -> float