refactor temperature 4