last index gets the start position of the index set