update temp file