adjust max and min rounding