How plants could adapt to changing climate