add getIndex on collectionService