added rounding in our algo