 
             if let indexPath = sender as? NSIndexPath {
 
-                let discoveredUser = getDiscoveredUserWithState(skillSet.rawValue)[indexPath.row]
+                let discoveredUser = discoveredUsersWithSkillSet(skillSet)[indexPath.row]
                 
                 let vc = segue.destinationViewController as! ProfileViewController
 

        })
    }

    func getDiscoveredUserWithState(state: Int) -> [DiscoveredUser] {

        if state == SkillSet.Master.rawValue {
            return discoveredMasterUsers
        } else {
            return discoveredLearningUsers
        }
    }


    
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

        return discoveredUsersWithSkillSet(SkillSet(rawValue: tableView.tag)).count
    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier) as! ContactsCell
        
        let discoveredUser = discoveredUsersWithSkillSet(SkillSet(rawValue: tableView.tag))[indexPath.row]
        
        let radius = min(CGRectGetWidth(cell.avatarImageView.bounds), CGRectGetHeight(cell.avatarImageView.bounds)) * 0.5
        
