updated snippets to new style