updated rounding functions part 2