small modification to grids