capacity to max_length