modifications to new autocomplete feature