rewriting writer