make generic functions to represent aggregated output