finalized C tree structure definition