fixing parseInt to parseFloat