rewrite 2 files