keyfuncdict factility in aggregate