updatescores hanld null value for scores