the Sampler now set threshold according to whether or not resampling method is chosen