; and (B) in paragraph (5)— (i) by inserting (at no expense to the Government) after to the greatest extent practicable ; and (ii) by striking have counsel to represent them and inserting have access to counsel to represent them . (b) Effective date The amendments made by this section shall apply to any unauthorized alien child apprehended on or after June 15, 2012. 1102. Clarification of standards for family detention (a) In general Section 235 of the William Wilberforce Trafficking Victims Protection Reauthorization Act of 2008 ( 8 U.S.C. 1232 ) is amended by adding at the end the following: (j) Construction (1) In general Notwithstanding any other provision of law, judicial determination, consent decree, or settlement agreement, the detention of any alien child who is not an unaccompanied alien child shall be governed by sections 217, 235, 236, and 241 of the Immigration and Nationality Act ( 8 U.S.C. 1187 , 1225, 1226, and 1231). There exists no presumption that an alien child who is not an unaccompanied alien child should not be detained, and all such determinations shall be in the discretion of the Secretary of Homeland Security. (2) Release of minors other than unaccompanied aliens In no circumstances shall an alien minor who is not an unaccompanied alien child be released by the Secretary of Homeland Security other than to a parent or legal guardian. . (b) Effective date The amendment made by subsection (a) shall take effect on the date of the enactment of this Act and shall apply to all actions that occur before, on, or after the date of the enactment of this Act. 1103. Detention of dangerous aliens Section 241(a) of the Immigration and Nationality Act ( 8 U.S.C. 1231(a) ) is amended— (1) by striking Attorney General each place it appears, except for the first reference in paragraph (4)(B)(i), and inserting Secretary of Homeland Security