new rounding function applies (simplified code)