update linked list node output with right arrow and end with null