removed duplicate searchAutoComplete func