sample updated to SDK v2