; (ii) in clause (xvi)— (I) by moving the left margin 2 ems to the left; and (II) by striking , or and inserting a comma; and (iii) by striking clause (xvii); and (B) in section 1943(b)(5), by striking the State and all that follows through the period at the end and inserting a determination be conducted on an annual basis (or on such longer basis as specified by the State) in accordance with section 1905(jj) for purposes of providing home and community-based services under the State plan (or waiver of such plan). . (2) Effective date (A) In general Except as provided in subparagraph (B), the amendments made by this subsection shall take effect on the first day of the first calendar quarter that begins on or after the date that is 5 years after the date of enactment of this Act. (B) Exception for States authorized to continue operating HCBS waivers In the case of a State for which the Secretary has waived the application of paragraph (1) of subsection (m) of section 1915 of the Social Security Act ( 42 U.S.C. 1396n ), as added by subsection (e), in accordance with paragraph (2) of such subsection (m), clause (xvii) of section 1905(a) of the Social Security Act shall continue to have effect with respect to such State for so long as paragraph (1) of such subsection (m) does not apply to such State. 103. Medicaid eligibility modifications Section 1902(a)(10) of the Social Security Act ( 42 U.S.C. 1396a(a)(10) ) is amended— (1) in subparagraph (A)(i)— (A) in subclause (VIII), by striking ; or and inserting a semicolon; (B) in subclause (IX)(dd), by striking the semicolon at the end and inserting ; or