stack size referred to attribute numEvents, not shape