     let ICON_FONT = UIFont.fontAwesomeOfSize(100)
 
     // CLASS VARIABLES
-    var matches = [(ingredient: PFIngredient, rank: Int)]() // data for the table
-    var allMatches = [(ingredient: PFIngredient, rank: Int)]()
-    var maxMatchRank : Double = -1 // used to determine match color level
+    var matches = [(ingredient: PFIngredient, rank: Double)]() // data for the table
+    var allMatches = [(ingredient: PFIngredient, rank: Double)]()
+    
+    var maxMatchRank : Double = -1 // used to determine match color level...
+    var matchAvg : Double = 0
     
     var filters: [String: Bool] = [F_KOSHER: false,
         F_DAIRY: false,

        
        if !(matches.isEmpty) {
            let match = matches[indexPath.row].ingredient
            let matchLevel = matches[indexPath.row].rank
            
            
            if match.isDataAvailable() {
                cell.label.text = match[_s_name] as? String
            } else {

        } else {
            allMatches = addToSearch(allMatches, newIngredient: currentSearch.last!)
            while !(isMatchDataLoaded()) {}
            matches = allMatches
            tableView.reloadData()
        }
