modify the directory structure