properly initialize the sampler