(a)(2)(B)(ii) and (b)(2)(B)(i) , and (II) by inserting or (b)(2)(A) after (a)(2)(B)(i) in subparagraph (B), (ii) in paragraph (3), by inserting or (b)(2)(B)(i), as the case may be, after (a)(2)(B)(ii) , (iii) in paragraph (5), by striking subsection (a)(2)(B)(ii) and inserting subsections (a)(2)(B)(ii) and (b)(2)(B)(i) , and (iv) in paragraph (6), by inserting or inverted domestic corporation, as the case may be, after surrogate foreign corporation . (c) Technical and conforming amendments related to stock compensation of insiders in expatriated corporations (1) Section 4985(a)(1) of such Code is amended by striking section 1(h)(1)(C) and inserting section 1(h)(1)(D) . (2) Section 4985(c) of such Code is amended by inserting or section 7874A(c)(1) (without regard to subparagraph (C) thereof) after section 7874(a)(2)(B)(i) . (3) Section 4985(e)(2)(A) of such Code is amended by inserting or section 7874A(d)(3) after section 7874(a)(2) . (d) Clerical amendments (1) The heading for section 7874 of such Code is amended by striking expatriated entities and their foreign parents and inserting corporate inversions completed on or before January 4, 2017 . (2) The table of sections for subchapter C of chapter 80 of such Code is amended by striking the item relating to section 7874 and inserting the following new items: Sec. 7874. Rules relating to corporate inversions completed on or before January 4, 2017. Sec. 7874A. Rules relating to corporate inversions and corporate expatriations. . (e) Effective date (1) In general Except as provided in paragraph (2), the amendments made by this section shall apply taxable years ending after January 4, 2017. (2) Modifications to rules relating to corporate inversions completed on or before January 4, 2017 The amendments made by subsection (b) shall apply to taxable years ending after May 8, 2014.