remove distracting code from snippets