modified to adopt multiple thermometer