correction of height calculation