update custom linked list