applied patch to SocialNetwork.java