remove assumption about aggregate index 0