add func in the search