implementing study aggregate