; and (2) by striking under section 1202(a) or 1302(a) of this title and inserting under section 1001(a) or 1202(a) of this title . (n) Debtor’s transactions with attorneys Section 329 of title 11, United States Code, is amended— (1) in subsection (b)(1)(B), by striking chapter 11, 12, or 13 of this title and inserting chapter 10, 11, or 12 of this title ; and (2) by adding at the end the following: (c) In a case under chapter 10 of this title, no compensation shall be allowed for the debtor’s attorney under this title unless— (1) the agreement between the debtor and the debtor’s attorney providing for compensation— (A) was made not more than 90 days before the date of the filing of the petition; (B) specifies the services provided or to be provided by the debtor’s attorney and the attorney’s related fees and expenses; (C) provides that the debtor will not be requested to pay or be liable for any amounts other than attorneys’ fees and expenses— (i) specified in the agreement; (ii) for any adversary proceeding in which the debtor is a party; or (iii) for services required by the debtor or the court that the attorney should not have reasonably anticipated at the time of the agreement; (D) does not provide for the payment of interest or any additional fees based on delay in payment or risk of nonpayment or for costs of collection on installment payments; and (E) does not include a pre-dispute arbitration agreement or a pre-dispute joint-action waiver with respect to any dispute under the agreement; (2) the attorney has discussed with the debtor the attorney’s fees and expenses under the agreement and the consequences of the attorney’s filing the certification required under paragraph (3), and, after full disclosure, the debtor consents to the filing of the certification; and (3) the attorney files with the court a certification, in accordance with rule 9011 of the Federal Rules of Bankruptcy Procedure, with respect to the agreement that— (A) the conditions specified in paragraphs (1) and (2) are satisfied