functional with classifier