; and (ii) in paragraph (7), by striking section 502(b)(6) and inserting section 502(b)(8) . (D) Section 506(d)(1) of title 11, United States Code, is amended by striking section 502(b)(5) or 502(e) and inserting subsection (b)(7) or (f) of section 502 . (E) Section 507(a)(3) of title 11, United States Code, is amended by striking section 502(f) and inserting section 502(g) . (F) Section 509(b)(1)(B) of title 11, United States Code, is amended by striking section 502(e) and inserting section 502(f) . (G) Section 544(b)(1) of title 11, United States Code, is amended by striking section 502(e) and inserting section 502(f) . (H) Section 929 of title 11, United States Code, is amended by striking section 502(b)(6) and inserting section 502(b)(8) . (I) Section 1114(j) of title 11, United States Code, is amended by striking section 502(b)(7) and inserting section 502(b)(9) . (J) Section 1141(d)(1)(A) of title 11, United States Code, is amended by striking section 502(g), 502(h), or 502(i) and inserting subsection (h), (i), or (j) of section 502 . (K) Section 1232(d)(4) of title 11, United States Code, is amended by striking or disallowed under subsection (d) or (e) of section 502 and inserting or disallowed under subsection (d), (e), or (f) of section 502 . (L) Section 311 of PROMESA ( 48 U.S.C. 2171 ) is amended by striking 502(b)(6) and inserting 502(b)(8) . (bb) Determination of secured status Section 506 of title 11, United States Code, is amended— (1) in subsection (a), by striking paragraph (2) and inserting the following: (2) In a case under chapter 10 of this title, any interest of a creditor in property of the debtor or the estate shall be determined by its realizable value as of the date of the filing of the petition.