update sample for SDK 1.0.0