updated snippets with latest attribute changes.