first iteration of autocomplete