added autocomplete method (2)