every branch of the tree has to learn