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


// Mark: - room Selection
extension RoomSelectionView {
    public func selectchosenRooms() {
        for room in chosenRooms {
            if let index = getCurrentIndex(for: room) {
                tableView.selectRow(at: index, animated: false, scrollPosition: .none)

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