File writing modification added/ headersize change