updating score