remove unnecessary snippets