pair wise results file and formatting in the script