; and (ii) in clause (i), by inserting before the semicolon at the end the following: , which shall include a hearing before an immigration judge not later than 14 days after being screened under paragraph (4) ; (2) in subsection (b)— (A) in paragraph (2)— (i) in subparagraph (A), by inserting before the semicolon the following: believed not to meet the criteria listed in subsection (a)(2)(A) ; and (ii) in subparagraph (B), by inserting before the period the following: and does not meet the criteria listed in subsection (a)(2)(A) ; and (B) in paragraph (3), by striking an unaccompanied alien child in custody shall and all that follows, and inserting the following: an unaccompanied alien child in custody— (A) in the case of a child who does not meet the criteria listed in subsection (a)(2)(A), shall transfer the custody of such child to the Secretary of Health and Human Services not later than 30 days after determining that such child is an unaccompanied alien child who does not meet such criteria; or (B) in the case of child who meets the criteria listed in subsection (a)(2)(A), may transfer the custody of such child to the Secretary of Health and Human Services after determining that such child is an unaccompanied alien child who meets such criteria.