Update height calculation.
remove real height function.