added some snippets