create complete tree