change score function