before update search