common snippets