some snippets added