plans for a better tree iteration
implemented delegation in tree iteration