regenerated snippets with scope