fix for temperature

no local var