finished part one of autocomplete post