update classify method