stuck on a bug. seems it has to do with linked list reassignment.