respect to such amounts for all prior taxable years ending after December 31, 2019. (ii) Energy Star In the case of amounts paid or incurred by any taxpayer for any taxable year for components described in subsection (c)(3)(B) which do not meet the most efficient certification under applicable Energy Star program requirements, the credit allowed under this section with respect to such amounts for such year shall not exceed the excess (if any) of $200 over the aggregate credits allowed under this section with respect to such amounts for all prior taxable years ending after December 31, 2019. (B) Election (i) In general For purposes of any amounts paid or incurred by any taxpayer for components described in subsection (c)(3)(B), the credit allowed under this section shall only be allowed for components described in clause (i) of subparagraph (A) or clause (ii) of such subparagraph, but not both, as elected by the taxpayer during the first taxable year in which such credit is being claimed by the taxpayer. (ii) Irrevocability The Secretary shall, through such rules, regulations, and procedures as are determined appropriate, establish procedures for making an election under this subparagraph, which shall require that— (I) any election made by the taxpayer shall be irrevocable, and (II) such election shall remain in effect for all subsequent taxable years. (4) Limitation on doors In the case of amounts paid or incurred for components described in subsection (c)(3)(C) by any taxpayer for any taxable year, the credit allowed under this section with respect to such amounts for such year shall not exceed— (A) the excess (if any) of $500 over the aggregate credits allowed under this section with respect to such amounts for all prior taxable years ending after December 31, 2019, or (B) $250 for each exterior door. (5) Limitation on residential energy property expenditures The amount of the credit allowed under this section by reason of subsection (a)(2) shall not exceed— (A) in the case of any energy-efficient building