change to nodeFactory