; and (B) comply with any standards under applicable State or local laws, rules, ordinances, or regulations relating to the physical condition of those dwelling units. (22) Enforcement of physical condition standards (A) In general The Secretary shall take action under subparagraph (C) against an entity with a housing assistance payments contract for project-based assistance with respect to a multifamily housing project if— (i) the project receives a Uniform Physical Condition Standards (in this paragraph referred to as UPCS ) inspection score of not more than 30; (ii) the entity fails to certify in writing to the Secretary within 3 days of receiving the score under clause (i) that all exigent health and safety deficiencies identified by the inspector at the project have been corrected; or (iii) the project receives a UPCS inspection score of more than 30 and less than 59 and has received consecutive scores of less than 60 on UPCS inspections. (B) Applicability Subparagraph (A) shall— (i) apply with respect to insured and noninsured projects with dwelling units receiving assistance under this section other than under paragraph (13); and (ii) not apply to dwelling units receiving assistance with capital or operating funds under section 9. (C) Notification and enforcement (i) In general If an entity violates clause (i), (ii), or (iii) of subparagraph (A), the Secretary shall notify the entity and provide an opportunity for response not later than 15 days after the date on which the results of the UPCS inspection are issued. (ii) Plan and notice of default If violations remain at a project after the 15-day period described in clause (i), the Secretary shall— (I) develop a plan to bring the project into compliance not later than 30 days after the date on which the results of the UPCS inspection are issued