adjust the structure of directory