removing unnecessary directories