add getIndex help