return index