feature extraction code.