revise a file