mapGrid() improvements