update autocomplete function