move this onto a class method.
Use 'aggregate' rather than 'filter' to make this clearer.