edited some snippets