garbage collector for grids