base snippets