update function search