under section 203(a) to their accompanying parent who is an immediate relative. (iii) Parents and children An alien who was the child or parent of a citizen of the United States or a child of a lawful permanent resident at the time of the citizen’s or resident’s death if the alien files a petition under section 204(a)(1)(A)(ii) within 2 years after such date or prior to reaching 21 years of age. (iv) Spouse or permanent partner An alien who was the spouse or permanent partner of a citizen of the United States or lawful permanent resident for not less than 2 years at the time of the citizen’s or resident’s death or, if married for less than 2 years at the time of the citizen’s or resident’s death, proves by a preponderance of the evidence that the marriage or permanent partnership was entered into in good faith and not solely for the purpose of obtaining an immigration benefit and was not legally separated from the citizen or resident (or, in the case of a permanent partnership, whose permanent partnership was not terminated) at the time of the citizen’s or resident’s death, and each child of such alien, shall be considered, for purposes of this subsection, an immediate relative after the date of the citizen’s or resident’s death if the spouse or permanent partner files a petition under section 204(a)(1)(A)(ii) before the date on which the spouse or permanent partner remarries or enters a permanent partnership with another person. (v) Special rule For purposes of this subparagraph, an alien who has filed a petition under clause (iii) or (iv) of section 204(a)(1)(A) remains an immediate relative if the United States citizen or lawful permanent resident spouse, permanent partner, or parent loses United States citizenship or residence on account of the abuse. (B) Birth during temporary visit abroad Aliens born to an alien lawfully admitted for permanent residence during a temporary visit abroad. . (b) Allocation of immigrant visas Section 203(a) of the Immigration and Nationality Act ( 8 U.S.C. 1153(a) ) is amended—