use height for calculation