helpful snippets