modifications on Node class