modify sampler