refactor temperature 2