refactoring of my communities call