replace snippets