adjust snippets to new style
iedit limited to the current function
remove redundant snippet