external tree depth