updated some snippets