adding seach function