trimming branch to linked list only