added spanning tree