rewrite autocomplete field