put a classification error check in