update grid.hh