modified for autosuggest