got some totals working

not pretty