added proper rounding