cleaning some snippets