fix for pairs