adding in real memberships query
delete debuggering line