updating sampler