modified for GRID