modified for new thermistor