; and (3) in subsection (d), as redesignated by paragraph (1)— (A) by striking section 242(h)(2) and inserting section 241(a)(4) ; and (B) by striking Attorney General and inserting Secretary of Homeland Security .