update SnippetGenerator