updated search functions.