added sampler to wrapper