using the methods with autocomplete