changes directory structure