update score, fix error in dict