bug-fix: using probabilities in the classify function