got linked list working