add search device func