created isConflict method