autocomplete public method.