started to implement handle function of aggregate