added some search functions.