updating root tree