event listener results file now accepted as a parameter