repair temp code