linked list before peer review/refactor