add function of Search