updating links and nodes
fixed