implementation of the temperature