added memberships and created membership index