only detect rectangles