fixed bug that did not consider fractions