update single linked list