tree and stats sructs