moved to lines rather than rects for the grid