update calculations to eliminate spike at the end of temperature profile