modified Node class