add doc sampler