implemented callback functions for sound