reform the file construction