pass in the grid.