added check for classification of sequences