update Algorithm for domain search