small changes to rounding in a few functions