removing unuseful directories