; (2) in subsection (g)— (A) in paragraph (1), by striking under chapter 9, 11, 12, or 13 of this title, and inserting under chapter 9, 10, 11, or 12 of this title, ; and (B) in paragraph (2)— (i) in the matter preceding subparagraph (A), by striking under chapter 9, 11, 12, or 13 of this title and inserting under chapter 9, 10, 11, or 12 of this title ; (ii) in subparagraph (A) by striking under section 1112, 1208 or 1307 of this title, and inserting under section 1005, 1053(c), 1112, or 1208 of this title, ; and (iii) in subparagraph (B), in the matter preceding clause (i), by striking under section 1112, 1208 or 1307 of this title and inserting under section 1005, 1053(c), 1112, or 1208 of this title ; and (3) by striking subsection (p) and inserting the following: (p) Notwithstanding any provision in a lease or applicable nonbankruptcy law, the following shall apply: (1) (A) If the debtor is an individual, the trustee shall be deemed to have abandoned any unexpired lease of residential real property that is the debtor’s principal residence of which the debtor or the debtor’s spouse or dependents is a tenant. (B) (i) Notwithstanding any other provision of this section, the debtor may assume such a lease— (I) without curing any monetary defaults under the lease that aggregate no more than the amount described in clause (iii)