design search functions