added totals to agent sum