update left and right max height