change toFloat to parseFloat