; and ; and (II) in clause (ii)— (aa) by striking subparagraphs (A) and (B) of paragraph (3) and inserting paragraph (3)(A)(i) ; and (bb) by striking paragraph (6) and inserting this paragraph ; (D) in paragraph (7)— (i) in subparagraph (A)(i)— (I) by inserting the written agreement entered into under paragraph (6), after description of the project, ; and (II) by inserting (including documented market research into commercial products and services) after used ; (ii) in subparagraph (B)— (I) in clause (i)— (aa) by striking establishing ; and (bb) by striking the cost savings associated with the projects funded both annually and over the life of the acquired products and services by the Fund; and inserting the following: the amount repaid to the Fund in accordance with the terms established in the written agreements described in paragraph (6); ; (II) in clause (ii)— (aa) by striking reliability of the cost savings and inserting total cost savings ; and (bb) by striking the semicolon and inserting ; and ; and (III) in clause (iii), by striking ; and and inserting a period; and (IV) by striking clause (iv); (2) in subsection (c)(2)— (A) in subparagraph (A)— (i) in clause (ii), by striking the greatest Governmentwide impact; and and inserting the following: the greatest impact on modernizing, retiring, or replacing Federal legacy information technology systems; and ; (ii) by redesignating clauses (i) through (iii) as clauses (ii) through (iv), respectively; and (iii) by inserting before clause (ii), as so redesignated, the following new clause: (i) the ability for the head of the agency to ensure repayment of funds transferred from the Fund to the head of the agency, in accordance with subsection (b); ; (B) in subparagraph (D), by striking to improve or replace multiple information technology systems and inserting the following: to modernize, retire, or replace legacy information technology systems under subsection (b)(3)(A)(i)