file is rewritten