bugfix from josh for his 1-4 exclusion pair detection code