mc sampler working