fixed some snippets