Refining linked list