update max bounds