refactoring morphology structure to facilitate manipulation of trees
between read and write