fixed thermodynamic, it was almost right.