modify cpp snippets