implemented auto-search