set_node_element function

Instead of doing everythingi n create_node