         case "showProfile":
 
             let vc = segue.destinationViewController as! ProfileViewController
-            var profileUser: ProfileUser?
+
             if let user = sender as? User {
-                if user.userID != YepUserDefaults.userID.value {
-                    profileUser = .UserType(user)
-                }
+               vc.prepare(withUser: user)
                 
             } else if let discoveredUser = (sender as? Box<DiscoveredUser>)?.value {
-                profileUser = .DiscoveredUserType(discoveredUser)
-            }
-            prepareProfileViewController(vc, withProfileUser: profileUser)
+                vc.prepare(withDiscoveredUser: discoveredUser)
+            }
 
             recoverOriginalNavigationDelegate()
             

        default:
            break
        }
    }

    private func prepareProfileViewController(vc: ProfileViewController, withProfileUser profileUser: ProfileUser?) {

        vc.profileUser = profileUser

        vc.hidesBottomBarWhenPushed = true

        vc.setBackButtonWithTitle()
    }
}


        let vc = UIStoryboard(name: "Profile", bundle: nil).instantiateViewControllerWithIdentifier("ProfileViewController") as! ProfileViewController

        let user = friends[indexPath.row]
        vc.prepare(withUser: user)

        recoverOriginalNavigationDelegate()

