rects are working like a charm