use existing approach for retrieving next index