modifies directory structure