cleaned up totals router