rewriting public