svm update and passed unit test