updated aggregates, added name attribute