; (B) in paragraph (3), by striking ; and and inserting a semicolon; (C) by redesignating paragraph (4) as paragraph (5); and (D) by inserting after paragraph (3) the following new paragraph: (4) the country or international organization has agreed not to use such article or service in the commission, or to enable the commission, of a violation of international humanitarian law or international human rights law; and . (2) Foreign Assistance Act of 1961 Section 505of the Foreign Assistance Act of 1961 ( 22 U.S.C. 2314(a) ) is amended— (A) in subsection (a)— (i) in paragraph (3), by striking ; and and inserting a semicolon; (ii) by redesignating paragraph (4) as paragraph (5); and (iii) by inserting after paragraph (3) the following new paragraph: (4) the country or international organization has agreed not to use such articles or service in the commission, or to enable the commission, of a violation of international humanitarian law or international human rights law; and ; and (B) in subsection (e), by striking subsection (a)(1) or (a)(4) both places it appears and inserting subsection (a)(1) or (a)(5) . (c) Authorized purpose for military sales Section 4 of the Arms Export Control Act ( 22 U.S.C. 2754 ) is amended— (1) by inserting legitimate before internal security ; and (2) by inserting , provided that such defense articles and defense services will not present a significant risk of being used to violate international humanitarian law or international human rights law after such friendly countries . 5. Consideration of human rights and democratization in arms exports (a) In general In considering the sale, export, or transfer of defense articles and defense services to foreign countries, the Secretary of State shall— (1) also consider the extent to which the government of the foreign country protects human rights and supports democratic institutions, including an independent judiciary