cleaning up the grid