make getDefinedIndexes method public
cleanup