add common search method