remove useless snippets