replaced the temp file with the one with content