updated sample according to sdk updates