changes to linkedlist.c