updated a couple of snippets