search works for multiprocess