reorganize the directory