cleaned up totals