modify combine to instead group then aggregate