file write modification