updated thermo equations