added common subsequence