added auto cast toFloat