fixed some naming bugs with the aggregate method