modify the snippets