fixed issue in pairings