saving a random tree