edited totals to display correctly