updating the code with temperature setting etc