refining the grid