new code for new lexis map function