adding methods for svm