-working for single svm pattern