updated totals to include term