aggregator initial code