     
     //MARK:- instance variables
     weak var delegate : QuerySuggestionDelegate? = nil
-    private var currentText: String?
+    private var currentText = ""
     
     
     init() {

            return
        }
        
        if UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation) {
            self.hidden = true
        } else if UIDeviceOrientationIsPortrait(UIDevice.currentDevice().orientation) {
            self.hidden = false
        }
        
    }

    }
    
    func didEnterText(text: String) {
        currentText = text
        
        guard QuerySuggestions.isEnabled() && OrientationUtil.isPortrait() else {
            self.hidden = true
            return
        }
        
        guard !text.isEmpty else {
            clearSuggestions()
            return
