finished the indexing methods