towards writing for SVM