fixed the aggregate