taking out the correctness checking code from the incremental
classification task for better maintainability