added the header info in the file