function moved to FeatureExtractor.py