seach functiions done