refactor temperature 1