         currentSort = sortHeaders(for: Array(currentResults.keys))
         self.showEmptyViewIfNeeded()
         tableView.reloadData()
-        selectchosenRooms()
+        selectChosenRooms()
     }
     
     func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {

        
        if chosenRooms.count == maxNumRooms {
            tableView.reloadData()
            selectchosenRooms()
        }
        
        delegate?.updateSelectedRooms(for: chosenRooms)

            currentSort = sortHeaders(for: Array(buildings.keys))
            self.showEmptyViewIfNeeded()
            tableView.reloadData()
            selectChosenRooms()
            return
        }
        
