some snippets