update snippets refactoring