update sampler