converted snippets to completions