removing redundant directory