added rewriter for node