; (iii) in paragraph (3)— (I) in subparagraph (A)— (aa) by striking with subsection (g) and inserting with subsection (h) ; and (bb) by striking targeting and minimization procedures adopted in accordance with subsections (d) and (e) and inserting targeting, minimization, and querying procedures adopted in accordance with subsections (d), (e), and (f) ; and (II) in subparagraph (B), in the matter before clause (i)— (aa) by striking with subsection (g) and inserting with subsection (h) ; and (bb) by striking with subsections (d) and (e) and inserting with subsections (d), (e), and (f) ; and (iv) in paragraph (5)(A)— (I) by striking with subsection (g) and inserting with subsection (h) ; and (II) by striking with subsections (d) and (e) and inserting with subsections (d), (e), and (f) ; and (G) in subsection (m), as redesignated by subsection (a)(1)— (i) in paragraph (1), in the matter before subparagraph (A)— (I) by striking targeting and minimization procedures adopted in accordance with subsections (d) and (e) and inserting targeting, minimization, and querying procedures adopted in accordance with subsections (d), (e), and (f) ; and (II) by striking with subsection (f) and inserting with subsection (g) ; and (ii) in paragraph (2)(A)— (I) by striking targeting and minimization procedures adopted in accordance with subsections (d) and (e) and inserting targeting, minimization, and querying procedures adopted in accordance with subsections (d), (e), and (f) ; and (II) by striking with subsection (f) and inserting with subsection (g) . (2) Amendments to Foreign Intelligence Surveillance Act of 1978 Amendments Act of 2008 Section 404 of the Foreign Intelligence Surveillance Act of 1978 Amendments Act of 2008 ( Public Law 110–261 ; 50 U.S.C. 1801 note) is amended— (A) in subsection (a)(7)(B)— (i) by striking under section 702(i)(3) and inserting under section 702(j)(3) ; and (ii) by striking under section 702(i)(4) and inserting under section 702(j)(4)