changed CNode to triple (struct does not work...)