updated snippets