linked list api updated