adding purpose in the search type