modified temperature.sh