added cnotainsSequence function