make setting of temperature work