added initializeFile()