rewriting pages