tested/fixed Node class