Little change in writing file