adding check to run_classifier