make Node.type_id field private