added translateMap method