update quick-sample code