added totals to bottom of table