fixing up the grid