pair detection work up to overlapping