stupidly used parseInt where parseFloat was needed