insertion of rectangle thumb in loop