fixed up some snippets