update some methods and complete SVM recognition methods