getting snippets