working on svm optimization