part one of autocomplete