use map for sampler mapping