rewrite some file