added nextUntil() and prevUntil()