new functions for classification
updates