implemented sound functionality