use maxSeries instead of groupByNode