updated to include proper tally struct and updated signature
updated to include proper tally struct