modify some snippets