add Index/IndexLast methods

add Index/IndexLast methods