removing unnecesary directories