combined gda and svm fncs to single fnc