attach proper search