rewrites documentation