sending parameters from a linked list