update the aggregate script