added multi svm code