modified sampler