fig in adding and displaying totals