automatically calculate_scores from commit 9d82c36e54cdf9b0074f780c87c2b4a5920db3b3