implemented search