feature extraction impl-d