search end condition changed