more work on totals