added search_pattern