improvement: of rounding algorithm