linked list code compiles, needs review
changed linked list