reorganize the file