changes to treememebers query