switched from parseInt to parseFloat