fixing the grid