refactor, add getTargetSubSequence method