changed some snippets