reverted main_grid to grid