eliminate the separate tables for holding totals