one more change to score function.