added a few snippets