fixes to rounding functions