spec for aggregate method