iterative mapping script parameterized