update sample and docs