more bug huntin in svm writing