; and (2) in subparagraph (B), by striking children who have left foster care and all that follows through the period and inserting youths who have aged out of foster care and have not attained age 21 (age 23, in the case of a State with a certification under clause (i) of subparagraph (A) to provide assistance and services to youths who have aged out of foster care up to such age, in accordance with clause (ii) of subparagraph (A)). . (b) Conforming amendment Section 477(a)(5) of such Act ( 42 U.S.C. 677(a)(5) ) is amended by inserting (23 years of age in the case of a State with a certification under clause (i) of subsection (b)(3)(A) to provide assistance and services to youths who have aged out of foster care up to such age, in accordance with clause (ii) of such subsection) after 21 years of age . (c) Effective date The amendments made by this section take effect on October 1, 2017.