code changes to linked_list