changed the annotated tree class