make indices list unique