minor changes max_length