finish directory structure