patch of sampler