tweak .reduce() returned type