writing out tallies