updating snippets