completed getIndices