added setData method to linked_node