fixing createFeatureVector