update class node of linklist