added forward func to svm