modify getNames & getIndexes