modify directory structure