mock functions for aggregation and plotting