alternately heating and cooling