unused method
preprocess rectangles that are actually lines