mapgen with each node having max(second arg)