add function to linked list