modified autocomplete