$$lastnode = $newnode;