add the score computation