init svm method added