get totals for sections