removing duplicated directory