class detector