add missing accumulatedEnergy