structure for aggregation functions and feature extraction