added a sampler