replace node with self