changed svm to local function
deleted svm script