updated parseInt to parseFloat