added playSound function