adding hasSubsequence