adding createNode()