also removing redundant dirs