restructured method call placement for updateTotals