improved adaptive height