Replacing trees lost to pests and climate change