added code to get features for svm