changed to feature extraction per window