refactoring member resource