avoid unneccessary to float calculations and conversions