automating autocomplete