code repeated evaluations in final energy metrics