modifications to sound.py