prettier code in search_by_title