first draft of index and last left off calculations