small updated to make parent Node class