fixed svm for pairs