working state before new rounding code