change temp file
delete temp