fixed bug in getting non overlaps