totals now working