clean code, update snippets