small optimizations

svm doesnt work