added internal energy recording