add svm method