added thermo.c