multiple rectangles without memory leak from before