feature vector creation