change the structure of directory