; and (B) a partnership. (2) Partnership The term partnership means a partnership between an eligible entity described in paragraph (1)(A) and 1 or more of the following entities: (A) Local building code agencies. (B) Codes and standards developers. (C) Associations of builders and design and construction professionals. (D) Local and utility energy efficiency programs. (E) Consumer, energy efficiency, and environmental advocates. (F) Other entities, as determined by the Secretary. (3) Secretary The term Secretary means the Secretary of Energy. (b) Establishment (1) In general The Secretary shall establish within the Building Technologies Office of the Department of Energy a program under which the Secretary shall award grants on a competitive basis to eligible entities to enable sustained cost-effective implementation of updated building energy codes. (2) Updated building energy code An update to a building energy code under this section shall include any update made available after the existing building energy code, even if it is not the most recent updated code available. (c) Criteria; priority In awarding grants under subsection (b), the Secretary shall— (1) consider— (A) prospective energy savings and plans to measure the savings; (B) the long-term sustainability of those measures and savings; (C) prospective benefits, and plans to assess the benefits, including benefits relating to— (i) resilience and peak load reduction; (ii) occupant safety and health; and (iii) environmental performance; (D) the demonstrated capacity of the eligible entity to carry out the proposed project; and (E) the need of the eligible entity for assistance