first step feature extraction