adding snippets