updated the score