update nodeFactory example