no need to do that. because no caller calls the function with both update_size=true and update_max=ture