improve performance in rounding