changed parseInt to parseFloat