work getIndexes