ammended Tree calc