; (II) by amending subparagraph (B) to read as follows: (B) (i) (I) Except as provided in subclause (II), any alien lawfully admitted for permanent residence claiming that an alien is entitled to a classification by reason of the relationship described in section 203(a)(2) may file a petition with the Attorney General for such classification. (II) Subclause (I) shall not apply in the case of an alien lawfully admitted for permanent residence who has been convicted of a specified offense against a minor (as defined in subparagraph (A)(viii)(II)), unless the Secretary of Homeland Security, in the Secretary's sole and unreviewable discretion, determines that such person poses no risk to the alien with respect to whom a petition described in subclause (I) is filed. (ii) An alien who was the child of a lawful permanent resident who within the past 2 years lost lawful permanent resident status due to an incident of domestic violence, and who is a person of good moral character, who is eligible for classification under section 203(a)(2), and who resides, or has resided in the past, with the alien's permanent resident alien parent may file a petition with the Secretary of Homeland Security under this subparagraph for classification of the alien (and any child of the alien) under such section if the alien demonstrates to the Secretary that the alien has been battered by or has been the subject of extreme cruelty perpetrated by the alien's permanent resident parent. (iii) (I) For purposes of a petition filed or approved under clause (ii), the loss of lawful permanent resident status by a parent after the filing of a petition under that clause shall not adversely affect approval of the petition, and for an approved petition, shall not affect the alien's ability to adjust status under subsections (a) and (c) of section 245 or obtain status as a lawful permanent resident based on an approved self-petition under clause (ii). (II) Upon the lawful permanent resident parent becoming or establishing the existence of United States