social graph refactoring temrinado