error of tree