fixed logic requirement for overlaps to be recognized