fix sample and doc