edit function search1