corrected calculation of trunk length