a few snippets