adding some search functions