removing extra directories