change parseInt to parseFloat