search functions.