aggregrator optimizations