update "node" class