rewirte the files.