changes dir structure