add score to wav function