removing subdirectories