added query to get children for collection get treemembers function