recreating feature extractor