loops now consider all tallies in array