correct height() condition