implemented root tree