change struct node to typedef node