modified GRID class