prevent multiple declarations of resultFile