clean up some snippets