; (B) by striking was no natural or adoptive parent and inserting is no living natural or adoptive parent ; (C) by striking was under a disability and inserting is under a disability ; (D) by striking living at the time and all that follows through , or (B) and inserting , (B) ; and (E) by inserting , or (C) the person has been in the custody of such individual pursuant to a court order for a period of not less than 12 months before the first period. (b) Conforming amendments Section 202(d)(1) of the Social Security Act ( 42 U.S.C. 402(d)(1) ) is amended— (1) by striking subparagraphs (A), (B), and (C) and inserting subparagraphs (A) and (B) and subparagraph (C) or paragraph (9) (as applicable)