generator now replaces method body with tree.toString