add make node function to nodes.