extract functions for feature extractor