commented out unfinished tally functions