patterns changed to snippets