add score change function