support maxheight also