various snippets