height calculation adjustment