sequenceWhile