change file writing