implemented search option