compute height demo