fixing linklist issues