added clear score function