update logic for IR detection of special nodes