rewrite node and list node