update sound logic