do pairwise comparison with neighbors
fix conflict