new routine to smooth temperatures