                     guard let latestRepo = githubRepos.first, realm = try? Realm() else {
                         return
                     }
-
-                    let yepTeamUsername = "yep_team"
 
                     if let yepTeam = userWithUsername(yepTeamUsername, inRealm: realm) {
                         syncSocialWorkPiece(SocialWorkPiece.Github(latestRepo), yepTeam: yepTeam, inRealm: realm)

                        return
                    }

                    let yepTeamUsername = "yep_team"

                    if let yepTeam = userWithUsername(yepTeamUsername, inRealm: realm) {
                        syncSocialWorkPiece(SocialWorkPiece.Dribbble(latestShot), yepTeam: yepTeam, inRealm: realm)


                }
            }

            let yepTeamUsername = "yep_team"

            func yepTeamFromDiscoveredUser(discoveredUser: DiscoveredUser, inRealm realm: Realm) -> User? {

                var yepTeam = userWithUsername(yepTeamUsername, inRealm: realm)

                if yepTeam == nil {
                    let newYepTeam = User()
                    newYepTeam.userID = discoveredUser.id
                    newYepTeam.username = discoveredUser.username ?? ""
                    newYepTeam.nickname = discoveredUser.nickname
                    newYepTeam.introduction = discoveredUser.introduction ?? ""
                    newYepTeam.avatarURLString = discoveredUser.avatarURLString
                    newYepTeam.badge = discoveredUser.badge ?? ""

                    newYepTeam.friendState = UserFriendState.Yep.rawValue

                    let _ = try? realm.write {
                        realm.add(newYepTeam)
                    }

                    yepTeam = newYepTeam
                }

                return yepTeam
            }

            if let githubToken = tokensOfSocialAccounts.githubToken {

                githubReposWithToken(githubToken, failureHandler: nil, completion: { githubRepos in
