max_length update