refactoring: renamed file manipulation function