debugging aggregate