debugging version of tempControl