add spanning tree