collecting parse trees