added a couple of snippets