finished isStackSequence