added rounding feature