added updating energies