2d mapping script