modifying the grid