small changes to snippets