cleaned up sound code