basic structure for parsing the tree is built