update some snippets