implemented agreg.
.