add totals to the top