updated Node class