adding autocomplete method