fix sample and docs