editted search functions