don't do anf of tree that have type errors, it crashes