reorganize file content