version 1
refactored sound player function
refactored sound player function