replacing time and temp position