explictly calculate the feature vector size