start separating tokens to create tree