; (B) in paragraph (6)— (i) in subparagraph (A)— (I) by striking or (ii) and inserting (ii) ; and (II) by inserting or (iii) is the child of an individual entitled to disability insurance benefits or of an individual who dies a fully or currently insured individual and is a full-time student at an educational institution and has not attained the age of 22, after 22, ; and (ii) by striking subparagraphs (D) and (E) and inserting the following: (D) the earlier of— (i) in the case of a child who is the child of an individual entitled to old-age insurance benefits— (I) the first month during no part of which the child is a full-time elementary or secondary school student; or (II) the month in which the child attains the age of 19; and (ii) in the case of a child who is the child of an individual entitled to disability insurance benefits or of an individual who dies a fully or currently insured individual— (I) the first month during no part of which the child is a full-time student at an educational institution; or (II) the month in which the child attains the age of 22; but only if the child is not under a disability (as so defined) in such earlier month; or (E) if the child was under a disability (as so defined), the termination month (as defined in paragraph (1)(G)(i)), subject to section 223(e), or (if later) the earlier of— (i) in the case of a child who is the child of an individual entitled to old-age insurance benefits— (I) the first month during no part of which the child is a full-time elementary or secondary school student; or (II) the month in which the child attains the age of 19; and (ii) in the case of a child who is the child of an individual entitled to disability insurance benefits or of an individual who dies a fully or currently insured individual— (I) the first month during no part of which the child is a full-time student at an educational institution; or (II) the month in which the child attains the age of 22.