working lines and rectangles