refactor sound and anim