Brett - fixed Tree_calcs