working rectangles and such