simplify mapgridctrl by reducing # of vars