update sample with new sdk