Pair effects in substitutional alloys