debugged the grid more