refactoring: renamed 'pool' variables to 'file'