refactor method doSearch