remoe duplicated directories