updated snippets to new sdk
updated snippets to new sdk