adding registers and rectangles