minor tweakings to the scoring function