change ir to be node list