; and (2) by amending clause (v) to read as follows: (v) the alien is described in subparagraph (B)(i) or (F) of section 212(a)(3), unless, in the case of an alien described in subparagraph (IV) or (IX) of section 212(a)(3)(B)(i), the Secretary of Homeland Security or the Attorney General determines, in the discretion of the Secretary or the Attorney General, that there are not reasonable grounds for regarding the alien as a danger to the security of the United States; or . (b) Cancellation of removal Section 240A(c)(4) of such Act ( 8 U.S.C. 1229b(c)(4) ) is amended— (1) by striking inadmissible under and inserting described in ; and (2) by striking deportable under and inserting described in . (c) Voluntary departure Section 240B(b)(1)(C) of such Act ( 8 U.S.C. 1229c(b)(1)(C) ) is amended by striking deportable under section 237(a)(2)(A)(iii) or section 237(a)(4); and inserting described in paragraph (2)(A)(iii) or (4) of section 237(a); . (d) Restriction on removal Section 241(b)(3)(B) of such Act ( 8 U.S.C. 1231(b)(3)(B) ) is amended— (1) in the matter preceding clause (i), by inserting or the Secretary of Homeland Security after Attorney General ; (2) in clause (iii), by striking or at the end; (3) in clause (iv), by striking the period at the end and inserting a semicolon; (4) by striking the flush matter that follows after clause (iv); and (5) by inserting after clause (iv) the following: (v) the alien is described in subparagraph (B)(i) or (F) of section 212(a)(3), unless, in the case of an alien described in subparagraph (IV) or (IX) of section 212(a)(3)(B)(i), the Secretary of Homeland Security or the Attorney General determines, in discretion of the Secretary or the Attorney General, that there are not reasonable grounds for regarding the alien as a danger to the security of the United States