a collection of useful snippets