refactoring for CompressInfoFile