set the height more accurately