update pairs file