tree
must be null
*ptree = null;