; and (2) in paragraph (4)(A), by striking Attorney General and inserting Secretary . (u) Section 240 B Section 240B ( 8 U.S.C. 1229c ) is amended— (1) in paragraphs (1) and (3) of subsection (a), by inserting or the Secretary after Attorney General ; and (2) in subsection (c), by inserting and the Secretary after Attorney General . (v) Section 241 Section 241 ( 8 U.S.C. 1231 ) is amended— (1) in subsection (a)(4)(B)(i), by inserting a close parenthetical after (L) ; (2) in paragraph (2) of subsection (g)— (A) by striking the paragraph heading and inserting Detention facilities of the department of homeland security .— ; (B) by striking Service, and inserting Department ; and (C) by striking Commissioner and inserting Secretary . (w) Section 242 Section 242(g) ( 8 U.S.C. 1252(g) ) is amended by inserting the Secretary or before the Attorney General . (x) Section 243 Section 243 ( 8 U.S.C. 1253 ) is amended— (1) in subparagraphs (A) and (B) of subsection (c)(1)— (A) by striking Attorney General each place that term appears and inserting Secretary ; and (B) by striking Commissioner each place that term appears and inserting Secretary ; and (2) in subsection (d), by inserting of State after notifies the Secretary . (y) Section 244 Section 244 ( 8 U.S.C. 1254a ) is amended— (1) in subsection (c)(2), by inserting or the Secretary after Attorney General each place the term appears; and (2) in subsection (g), by inserting or the Secretary after Attorney General . (z) Section 245 Section 245 ( 8 U.S.C. 1255 ) is amended— (1) by inserting or the Secretary after Attorney General each place that term appears except in subsections (j) (other than the first reference), (l), and (m); (2) in subsection (c), striking the comma after section 101(a)(15)(S) and inserting a semicolon; (3) in subsection (k)(1), adding an and at the end; (4) in subsection (l)— (A) in paragraph (1), by inserting a comma after appropriate