some progress on mapGrid()