Correct height dividend and improve variable name