rewrite node