refactored no_conflict() to remove the search() function and better reuse code