retrieve memberships works