search dock function