rename the temp file