linked list of repeated orders
code cleanup