refactor getOpenMember and getCloseMember