update tallies sum correctly