modify c and make snippets