- added previous svmmatrix code