cleaning up some snippets