rewrite setting