added docstring
updated set_node_position