added some thermodynamics