removing dupicated directories