decoupled tally_score into individual routines for clarity