added calculation of energy e_diss