a wild run through grids.hh to identify the lines to be changed