added method to return the current index in the range