modified max length