added for-in loop to add tally votes