safety totals working
get totals to work