change parseFloat to parseInt with radix 10