added abstraction of sampler patch