; (5) by striking subsection (e) (as so redesignated by paragraph (1) of this subsection) and inserting the following new subsection: (e) Replacement units (1) Requirement to replace or maintain each unit (A) Replacement Except for demolition pursuant to subsection (g) or as provided in paragraph (2) of this subsection, each public housing dwelling unit that undergoes demolition, disposition, or demolition or disposition or both pursuant to conversion under section 22 or 33, or that is the subject of a taking, directly or indirectly, through the use of eminent domain, after the date of the enactment of the Public Housing Tenant Protection and Reinvestment Act of 2017 , shall be replaced with a newly constructed, rehabilitated, acquired, or converted rental unit that complies with all of the requirements of this subsection. (B) Requirements applicable to replacement units Such replacement or converted units shall be subject to the same requirements regarding eligibility for occupancy (including income eligibility), tenant contribution toward rent (including tenant authority to select rental payment determination method), eviction protections and procedures, and affordability restrictions that are applicable to public housing dwelling units. Such requirements shall not terminate unless units are replaced with a comparable number of units that are subject to the same requirements. (C) Tenant protection vouchers to replace demolished, disposed of, or converted units on one-for-one basis Subject only to the availability of amounts provided in appropriation Acts, the Secretary shall provide replacement vouchers for rental assistance under section 8 for all dwelling units in projects that are demolished or disposed of pursuant to this section or converted pursuant to section 22 or 33. (D) Inapplicability of certain project-based voucher requirements Subparagraphs (B) and (D) of section 8(o)(13) of the United States Housing Act of 1936 (relating to percentage limitation and income mixing requirement of project-based