reworked IRTree