fixed output for the pairs file