refactor sound setting