change the whole file