subthread height calculation ready