; and (D) in subparagraph (C)— (i) by amending the subparagraph heading to read as follows: Agreements with foreign countries.— ; and (ii) in the matter preceding clause (i), by striking countries contiguous to the United States and inserting Canada, El Salvador, Guatemala, Honduras, Mexico, and any other foreign country the Secretary considers appropriate ; (2) by striking paragraph (3); (3) by redesignating paragraphs (4) and (5) as paragraphs (3) and (4), respectively; and (4) in paragraph (4)(D), as so redesignated, by striking from a contiguous country . (c) Protecting integrity of special immigrant juvenile visa program Section 101(a)(27)(J) of the Immigration and Nationality Act ( 8 U.S.C. 1101(a)(27)(J) ) is amended— (1) in clause (i), by striking , and whose and all that follows through State law ; and (2) in clause (iii)— (A) in subclause (I), by striking and at the end; and (B) by adding at the end the following: (III) an alien may not be granted special immigrant juvenile status under this subparagraph if the juvenile court determines that the alien may be returned to the legal custody of any parent of the alien; and (IV) (aa) in assessing whether an alien is entitled to special immigrant juvenile classification under this subparagraph, the Secretary of Homeland Security may, in the discretion of the Secretary, determine whether— (AA) an order of dependency or custody issued for purposes of clause (i) was issued during juvenile court abuse and neglect proceedings for the purpose of providing permanency to an alien the parents of whom have been found to be unfit; and (BB) such order was issued by a court of appropriate jurisdiction; and (bb) notwithstanding any other provision of law, no court shall have jurisdiction to review a determination made by the Secretary of Homeland Security under this subclause