overlapping range and wl algoritm