A federal grant will help the city replace arborvitaes killed by invasive burrowing beetles with trees selected to resist future infestations.