getting pinning working with aggregates.