rearrange subdirectories