modify a file