; and (3) in subsection (f)— (A) in paragraph (2), by striking section 203(a)(2)(A) and inserting section 203(a) ; (B) by striking paragraph (3); (C) by redesignating paragraph (4) as paragraph (3); and (D) in paragraph (3), as redesignated, by striking (1) through (3) and inserting (1) and (2) . (b) Family-Based visa preferences Section 203(a) of the Immigration and Nationality Act ( 8 U.S.C. 1153(a) ) is amended to read as follows: (a) Spouses and minor children of permanent resident aliens Family-sponsored immigrants described in this subsection are qualified immigrants who are the spouse or a child of an alien lawfully admitted for permanent residence. Such immigrants shall be allocated visas in accordance with the number computed under section 201(c). . (c) Aging out Section 203(h) of the Immigration and Nationality Act ( 8 U.S.C. 1153(h) ) is amended— (1) by striking (a)(2)(A) each place such term appears and inserting (a) ; (2) by amending paragraph (1) to read as follows: (1) In general Subject to paragraph (2), for purposes of subsections (a) and (d), a determination of whether an alien satisfies the age requirement in the matter preceding subparagraph (A) of section 101(b)(1) shall be made using the age of the alien on the date on which a petition is filed with the Secretary of Homeland Security. ; (3) by redesignating paragraphs (2) through (4) as paragraphs (3) through (5), respectively; (4) by inserting after paragraph (1) the following: (2) Limitation Notwithstanding the age of an alien on the date on which a petition is filed, an alien who marries or turns 25 years of age prior to a visa becoming available for issuance pursuant to subsection (a) or (d), no longer satisfies the age requirement described in paragraph (1).