membership table loop