transform snippets