adding the temperature argument