fixed erros in cup_classify